var win = Ti.UI.currentWindow;

var webCalendari = Ti.UI.createWebView({
	scalesPageToFit:false,
	url:Ti.App.config.url_calendari,
	backgroundColor:'transparent',
	backgroundImage:'img/background2.png'
});

var actInd = Titanium.UI.createActivityIndicator({
	top:160,
	height:60,
	width:60,
	color:'#FFFFFF',
	style:Ti.UI.iPhone.ActivityIndicatorStyle.BIG,
	message:L("Carregant")
});

webCalendari.addEventListener('error', function(e) {
	alert(L("ConnectError"));
	actInd.hide();
});

webCalendari.addEventListener('load',function(e){
	actInd.hide();
});

win.add(webCalendari);
win.add(actInd);
actInd.show();